﻿using System;
using System.Web.Mvc;
using AutoMapper;
using WebApp.Services;

namespace WebApp.Controllers
{
    public class ErrorController : SmartController
    {
        public ErrorController(IUserSession userSession, IMappingEngine mappingEngine) : base(userSession, mappingEngine)
        {
        }

        public ViewResult Index()
        {
            return View("InternalServer");
        }

        public ViewResult InternalServer()
        {
            return View();
        }

        public ViewResult PageNotFound()
        {
            return View();
        }

        public ViewResult Throw()
        {
            throw new Exception("Placeholder for error situation for testing");
        }
    }
}